From 95a751262251b7f8137efb828e9c4825d91cad34 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 18 Aug 2020 23:35:38 +0000 Subject: [PATCH] prepare-root: Remove unused variable Should quiet Coverity. --- src/switchroot/ostree-prepare-root.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/switchroot/ostree-prepare-root.c b/src/switchroot/ostree-prepare-root.c index 8a68e1f4..f7e4fe47 100644 --- a/src/switchroot/ostree-prepare-root.c +++ b/src/switchroot/ostree-prepare-root.c @@ -101,10 +101,9 @@ sysroot_is_configured_ro (const char *sysroot) bool ret = false; char *line = NULL; size_t len = 0; - ssize_t nread; /* Note getline() will reuse the previous buffer */ bool in_sysroot = false; - while ((nread = getline (&line, &len, f)) != -1) + while (getline (&line, &len, f) != -1) { /* This is an awful hack to avoid depending on GLib in the * initramfs right now. -- 2.30.2